package com.ktjy.entity;

/**
 * @return 13141
 * 2025/6/20
 * 14:13
 */
public class Print {
    private String color;  // 颜色
    private String size;  // 尺寸
    private InkBox inkBox;  // 墨盒

    // 无参构造
    public Print() {
    }

    public Print(InkBox inkBox, String color) {
        this.inkBox = inkBox;
        this.color = color;
    }

    public void show() {
        System.out.println(this.getInkBox().getColor()+ "打印机将打印" + getColor() + "的" + getSize() + "纸张");
    }
    // 属性封装
    // 墨盒从生产起就已经确定，无法更改
    public InkBox getInkBox() {
        return inkBox;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }
}
